/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.omarNet.core.bo.impl;

import com.omarNet.core.bo.StockBo;
import com.omarNet.core.dao.StockDao;
import com.omarNet.core.model.Stock;

/**
 *
 * @author Omar
 */
public class StockBoImpl implements StockBo {

    StockDao stockDao;

    public void setStockDao(StockDao stockDao) {
        this.stockDao = stockDao;
    }

    public void save(Stock stock) {
        stockDao.save(stock);
    }

    public void update(Stock stock) {
        stockDao.update(stock);
    }

    public void delete(Stock stock) {
        stockDao.delete(stock);
    }

    public Stock findByStockCode(String stockCode) {
        return stockDao.findByStockCode(stockCode);
    }
}
